#!/bin/bash    
PRJ_PATH=/home/hh/work
function ergodic(){    
    for file in ` ls $1 `    
    do    
        if [ -d $1"/"$file ]  
          then    
          mkdir $2"/"$file  
                  ergodic $1"/"$file  $2"/"$file          
        else    
         iconv -f gbk -t utf8 $1"/"$file > $2"/"$file  
        fi    
    done    
}    
  
IN_PATH="$PRJ_PATH/120kw_PCU"  
OUT_PATH="$PRJ_PATH/out"
ergodic $IN_PATH $OUT_PATH  
